<?php

	require_once('../inc/fnc.php');
	require_once('../inc/conn.php');
	
	// Initializing variables
	$name = mysql_prep($_POST['name']);
	$email = mysql_prep($_POST['email']);
	$msg = mysql_prep($_POST['msg']);
	
	$return['type'] = reportbug($name,$email,$msg);

	echo json_encode($return); // Return 1 for non existent account; 2 for database error; 3 for  successful update

?>